import request from './request'
class CommonModel {
  get(options = {}) {
    return request({
      method: 'get',
      ...this.options,
      ...options,
    })
  }

  post(options = {}) {
    return request({
      method: 'post',
      ...this.options,
      ...options,
    })
  }

  put(options = {}) {
    return request({
      method: 'put',
      ...this.options,
      ...options,
    })
  }

  delete(options = {}) {
    return request({
      method: 'delete',
      ...this.options,
      ...options,
    })
  }
}

export default new CommonModel()
